\hypertarget{classace_1_1_graphics___imp___d_x11}{\section{クラス ace\-:\-:Graphics\-\_\-\-Imp\-\_\-\-D\-X11}
\label{classace_1_1_graphics___imp___d_x11}\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
}
ace\-:\-:Graphics\-\_\-\-Imp\-\_\-\-D\-X11に対する継承グラフ\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.294478cm]{d3/d32/classace_1_1_graphics___imp___d_x11}
\end{center}
\end{figure}
\subsection*{Public メソッド}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classace_1_1_texture2_d___imp}{Texture2\-D\-\_\-\-Imp} $\ast$ \hyperlink{classace_1_1_graphics___imp___d_x11_abd1a2f1e674af236b449861d08bb0ee2}{Create\-Texture2\-D\-\_\-\-Imp\-\_\-\-Internal} (\hyperlink{classace_1_1_graphics}{Graphics} $\ast$graphics, uint8\-\_\-t $\ast$data, int32\-\_\-t size)
\begin{DoxyCompactList}\small\item\em テクスチャを生成する。 \end{DoxyCompactList}\item 
\hyperlink{classace_1_1_render_texture___imp}{Render\-Texture\-\_\-\-Imp} $\ast$ \hyperlink{classace_1_1_graphics___imp___d_x11_a5da4508eb1ecb80ccfc465e4191d41b1}{Create\-Render\-Texture\-\_\-\-Imp} (int32\-\_\-t width, int32\-\_\-t height, e\-Texture\-Format format)
\begin{DoxyCompactList}\small\item\em 描画先として指定可能なテクスチャを生成する。 \end{DoxyCompactList}\item 
\hyperlink{classace_1_1_depth_buffer___imp}{Depth\-Buffer\-\_\-\-Imp} $\ast$ \hyperlink{classace_1_1_graphics___imp___d_x11_a6b3f76cc423b5bb3701d24f6a74900fd}{Create\-Depth\-Buffer\-\_\-\-Imp} (int32\-\_\-t width, int32\-\_\-t height)
\begin{DoxyCompactList}\small\item\em 深度バッファを生成する。 \end{DoxyCompactList}\item 
void \hyperlink{classace_1_1_graphics___imp___d_x11_a9489c1db88a35a436ad33215040ac42c}{Set\-Render\-Target} (\hyperlink{classace_1_1_render_texture___imp}{Render\-Texture\-\_\-\-Imp} $\ast$texture, \hyperlink{classace_1_1_depth_buffer___imp}{Depth\-Buffer\-\_\-\-Imp} $\ast$depth\-Buffer)
\begin{DoxyCompactList}\small\item\em 描画先を設定する。 \end{DoxyCompactList}\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_a259c57221c5a82b7ef23cccfab966cca}{void {\bfseries Set\-Viewport} (int32\-\_\-t x, int32\-\_\-t y, int32\-\_\-t width, int32\-\_\-t height)}\label{classace_1_1_graphics___imp___d_x11_a259c57221c5a82b7ef23cccfab966cca}

\item 
void \hyperlink{classace_1_1_graphics___imp___d_x11_a4879fa2342124e653a097b5ce0b61c7e}{Clear} (bool is\-Color\-Target, bool is\-Depth\-Target, const \hyperlink{structace_1_1_color}{Color} \&color)
\begin{DoxyCompactList}\small\item\em 画面をクリアする。 \end{DoxyCompactList}\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_ab84514bf205470053c657afaf8a15446}{void \hyperlink{classace_1_1_graphics___imp___d_x11_ab84514bf205470053c657afaf8a15446}{Present} ()}\label{classace_1_1_graphics___imp___d_x11_ab84514bf205470053c657afaf8a15446}

\begin{DoxyCompactList}\small\item\em 内部のバッファを画面に表示する。 \end{DoxyCompactList}\item 
void \hyperlink{classace_1_1_graphics___imp___d_x11_a86b7eddf3e16351cfd3730a2dd686d8b}{Save\-Screenshot} (const achar $\ast$path)
\begin{DoxyCompactList}\small\item\em スクリーンショットを保存する。 \end{DoxyCompactList}\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_af38c0c83a8501a9b0f3a192c0d1584de}{I\-D3\-D11\-Device $\ast$ {\bfseries Get\-Device} ()}\label{classace_1_1_graphics___imp___d_x11_af38c0c83a8501a9b0f3a192c0d1584de}

\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_a4eccf794aa666f8c2b5c4cf4c1bfef6e}{I\-D3\-D11\-Device\-Context $\ast$ {\bfseries Get\-Context} ()}\label{classace_1_1_graphics___imp___d_x11_a4eccf794aa666f8c2b5c4cf4c1bfef6e}

\item 
e\-Graphics\-Type \hyperlink{classace_1_1_graphics___imp___d_x11_a2bcd7e01fd800d30000f9e912950903d}{Get\-Graphics\-Type} () const 
\begin{DoxyCompactList}\small\item\em 描画ランタイムの種類を取得する。 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public メソッド}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_a15e6b803248e5d2c6505a3ba37fed94a}{static \hyperlink{classace_1_1_graphics___imp___d_x11}{Graphics\-\_\-\-Imp\-\_\-\-D\-X11} $\ast$ {\bfseries Create} (\hyperlink{classace_1_1_window}{Window} $\ast$window, \hyperlink{classace_1_1_log}{Log} $\ast$log)}\label{classace_1_1_graphics___imp___d_x11_a15e6b803248e5d2c6505a3ba37fed94a}

\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_ab410a451ef4de2093f2e0201dfd27730}{static \hyperlink{classace_1_1_graphics___imp___d_x11}{Graphics\-\_\-\-Imp\-\_\-\-D\-X11} $\ast$ {\bfseries Create} (H\-W\-N\-D handle, int32\-\_\-t width, int32\-\_\-t height, \hyperlink{classace_1_1_log}{Log} $\ast$log)}\label{classace_1_1_graphics___imp___d_x11_ab410a451ef4de2093f2e0201dfd27730}

\end{DoxyCompactItemize}
\subsection*{Protected メソッド}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_af53ea0a20c11f81a9df7a720387c3a52}{\hyperlink{classace_1_1_vertex_buffer___imp}{Vertex\-Buffer\-\_\-\-Imp} $\ast$ {\bfseries Create\-Vertex\-Buffer\-\_\-\-Imp\-\_\-} (int32\-\_\-t size, int32\-\_\-t count, bool is\-Dynamic)}\label{classace_1_1_graphics___imp___d_x11_af53ea0a20c11f81a9df7a720387c3a52}

\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_aa732b47475d03364d52f04702fc40fb0}{\hyperlink{classace_1_1_index_buffer___imp}{Index\-Buffer\-\_\-\-Imp} $\ast$ {\bfseries Create\-Index\-Buffer\-\_\-\-Imp\-\_\-} (int max\-Count, bool is\-Dynamic, bool is32bit)}\label{classace_1_1_graphics___imp___d_x11_aa732b47475d03364d52f04702fc40fb0}

\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_ae7ecd7a090eaf7686dc29d21c48ccea7}{\hyperlink{classace_1_1_native_shader___imp}{Native\-Shader\-\_\-\-Imp} $\ast$ {\bfseries Create\-Shader\-\_\-\-Imp\-\_\-} (const char $\ast$vertex\-Shader\-Text, const char $\ast$vertex\-Shader\-File\-Name, const char $\ast$pixel\-Shader\-Text, const char $\ast$pixel\-Shader\-File\-Name, std\-::vector$<$ \hyperlink{structace_1_1_vertex_layout}{Vertex\-Layout} $>$ \&layout, std\-::vector$<$ \hyperlink{structace_1_1_macro}{Macro} $>$ \&macro)}\label{classace_1_1_graphics___imp___d_x11_ae7ecd7a090eaf7686dc29d21c48ccea7}

\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_ae563e10531716141c59bc38c7a26256a}{void {\bfseries Update\-Draw\-States} (\hyperlink{classace_1_1_vertex_buffer___imp}{Vertex\-Buffer\-\_\-\-Imp} $\ast$vertex\-Buffer, \hyperlink{classace_1_1_index_buffer___imp}{Index\-Buffer\-\_\-\-Imp} $\ast$index\-Buffer, \hyperlink{classace_1_1_native_shader___imp}{Native\-Shader\-\_\-\-Imp} $\ast$shader\-Ptr, int32\-\_\-t \&vertex\-Buffer\-Offset)}\label{classace_1_1_graphics___imp___d_x11_ae563e10531716141c59bc38c7a26256a}

\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_ab517e080bc8844be40bd20a5c13ee0d3}{void {\bfseries Draw\-Polygon\-Internal} (int32\-\_\-t count, \hyperlink{classace_1_1_vertex_buffer___imp}{Vertex\-Buffer\-\_\-\-Imp} $\ast$vertex\-Buffer, \hyperlink{classace_1_1_index_buffer___imp}{Index\-Buffer\-\_\-\-Imp} $\ast$index\-Buffer, \hyperlink{classace_1_1_native_shader___imp}{Native\-Shader\-\_\-\-Imp} $\ast$shader\-Ptr)}\label{classace_1_1_graphics___imp___d_x11_ab517e080bc8844be40bd20a5c13ee0d3}

\item 
\hypertarget{classace_1_1_graphics___imp___d_x11_a21f035fcb8949415bacfd716e9bd3752}{void {\bfseries Begin\-Internal} ()}\label{classace_1_1_graphics___imp___d_x11_a21f035fcb8949415bacfd716e9bd3752}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{関数}
\hypertarget{classace_1_1_graphics___imp___d_x11_a4879fa2342124e653a097b5ce0b61c7e}{\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}!Clear@{Clear}}
\index{Clear@{Clear}!ace::Graphics_Imp_DX11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
\subsubsection[{Clear}]{\setlength{\rightskip}{0pt plus 5cm}void ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11\-::\-Clear (
\begin{DoxyParamCaption}
\item[{bool}]{is\-Color\-Target, }
\item[{bool}]{is\-Depth\-Target, }
\item[{const {\bf Color} \&}]{color}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classace_1_1_graphics___imp___d_x11_a4879fa2342124e653a097b5ce0b61c7e}


画面をクリアする。 


\begin{DoxyParams}{引数}
{\em is\-Color\-Target} & 色をクリアするか \\
\hline
{\em is\-Depth\-Target} & 深度をクリアするぁ \\
\hline
{\em color} & クリアに使用する色 \\
\hline
\end{DoxyParams}


\hyperlink{classace_1_1_graphics___imp_a01cdb8dced31a926c9ca604ebdf1e90a}{ace\-::\-Graphics\-\_\-\-Imp}を実装しています。

\hypertarget{classace_1_1_graphics___imp___d_x11_a6b3f76cc423b5bb3701d24f6a74900fd}{\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}!Create\-Depth\-Buffer\-\_\-\-Imp@{Create\-Depth\-Buffer\-\_\-\-Imp}}
\index{Create\-Depth\-Buffer\-\_\-\-Imp@{Create\-Depth\-Buffer\-\_\-\-Imp}!ace::Graphics_Imp_DX11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
\subsubsection[{Create\-Depth\-Buffer\-\_\-\-Imp}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Depth\-Buffer\-\_\-\-Imp} $\ast$ ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11\-::\-Create\-Depth\-Buffer\-\_\-\-Imp (
\begin{DoxyParamCaption}
\item[{int32\-\_\-t}]{width, }
\item[{int32\-\_\-t}]{height}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classace_1_1_graphics___imp___d_x11_a6b3f76cc423b5bb3701d24f6a74900fd}


深度バッファを生成する。 


\begin{DoxyParams}{引数}
{\em width} & 横幅 \\
\hline
{\em height} & 縦幅 \\
\hline
\end{DoxyParams}


\hyperlink{classace_1_1_graphics___imp_a6e505725a34fbdcf164840816daf17b9}{ace\-::\-Graphics\-\_\-\-Imp}を実装しています。

\hypertarget{classace_1_1_graphics___imp___d_x11_a5da4508eb1ecb80ccfc465e4191d41b1}{\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}!Create\-Render\-Texture\-\_\-\-Imp@{Create\-Render\-Texture\-\_\-\-Imp}}
\index{Create\-Render\-Texture\-\_\-\-Imp@{Create\-Render\-Texture\-\_\-\-Imp}!ace::Graphics_Imp_DX11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
\subsubsection[{Create\-Render\-Texture\-\_\-\-Imp}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Render\-Texture\-\_\-\-Imp} $\ast$ ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11\-::\-Create\-Render\-Texture\-\_\-\-Imp (
\begin{DoxyParamCaption}
\item[{int32\-\_\-t}]{width, }
\item[{int32\-\_\-t}]{height, }
\item[{e\-Texture\-Format}]{format}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classace_1_1_graphics___imp___d_x11_a5da4508eb1ecb80ccfc465e4191d41b1}


描画先として指定可能なテクスチャを生成する。 


\begin{DoxyParams}{引数}
{\em width} & 横幅 \\
\hline
{\em height} & 縦幅 \\
\hline
\end{DoxyParams}


\hyperlink{classace_1_1_graphics___imp_a5390d16360dbfba39ead84687bc331a6}{ace\-::\-Graphics\-\_\-\-Imp}を実装しています。

\hypertarget{classace_1_1_graphics___imp___d_x11_abd1a2f1e674af236b449861d08bb0ee2}{\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}!Create\-Texture2\-D\-\_\-\-Imp\-\_\-\-Internal@{Create\-Texture2\-D\-\_\-\-Imp\-\_\-\-Internal}}
\index{Create\-Texture2\-D\-\_\-\-Imp\-\_\-\-Internal@{Create\-Texture2\-D\-\_\-\-Imp\-\_\-\-Internal}!ace::Graphics_Imp_DX11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
\subsubsection[{Create\-Texture2\-D\-\_\-\-Imp\-\_\-\-Internal}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Texture2\-D\-\_\-\-Imp} $\ast$ ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11\-::\-Create\-Texture2\-D\-\_\-\-Imp\-\_\-\-Internal (
\begin{DoxyParamCaption}
\item[{{\bf Graphics} $\ast$}]{graphics, }
\item[{uint8\-\_\-t $\ast$}]{data, }
\item[{int32\-\_\-t}]{size}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classace_1_1_graphics___imp___d_x11_abd1a2f1e674af236b449861d08bb0ee2}


テクスチャを生成する。 


\begin{DoxyParams}{引数}
{\em graphics} & グラフィック \\
\hline
{\em data} & データ \\
\hline
{\em size} & データサイズ \\
\hline
\end{DoxyParams}


\hyperlink{classace_1_1_graphics___imp_a22b71332aee484e37c2246413527a501}{ace\-::\-Graphics\-\_\-\-Imp}を実装しています。

\hypertarget{classace_1_1_graphics___imp___d_x11_a2bcd7e01fd800d30000f9e912950903d}{\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}!Get\-Graphics\-Type@{Get\-Graphics\-Type}}
\index{Get\-Graphics\-Type@{Get\-Graphics\-Type}!ace::Graphics_Imp_DX11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
\subsubsection[{Get\-Graphics\-Type}]{\setlength{\rightskip}{0pt plus 5cm}e\-Graphics\-Type ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11\-::\-Get\-Graphics\-Type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classace_1_1_graphics___imp___d_x11_a2bcd7e01fd800d30000f9e912950903d}


描画ランタイムの種類を取得する。 

\begin{DoxyReturn}{戻り値}
種類 
\end{DoxyReturn}


\hyperlink{classace_1_1_graphics_a58df9c2574e3c8818b081956547c57d9}{ace\-::\-Graphics}を実装しています。

\hypertarget{classace_1_1_graphics___imp___d_x11_a86b7eddf3e16351cfd3730a2dd686d8b}{\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}!Save\-Screenshot@{Save\-Screenshot}}
\index{Save\-Screenshot@{Save\-Screenshot}!ace::Graphics_Imp_DX11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
\subsubsection[{Save\-Screenshot}]{\setlength{\rightskip}{0pt plus 5cm}void ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11\-::\-Save\-Screenshot (
\begin{DoxyParamCaption}
\item[{const achar $\ast$}]{path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classace_1_1_graphics___imp___d_x11_a86b7eddf3e16351cfd3730a2dd686d8b}


スクリーンショットを保存する。 


\begin{DoxyParams}{引数}
{\em path} & 保存先 \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{覚え書き}
Open\-G\-Lの現状の実装だと、\-Render\-Target等が指定されている状態では使えないため、 使用できるのは\-Do\-Eventsか\-Present近辺のみである。 
\end{DoxyNote}


\hyperlink{classace_1_1_graphics___imp_afab7408e22bc54b909485422a2b15b6c}{ace\-::\-Graphics\-\_\-\-Imp}を実装しています。

\hypertarget{classace_1_1_graphics___imp___d_x11_a9489c1db88a35a436ad33215040ac42c}{\index{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}!Set\-Render\-Target@{Set\-Render\-Target}}
\index{Set\-Render\-Target@{Set\-Render\-Target}!ace::Graphics_Imp_DX11@{ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11}}
\subsubsection[{Set\-Render\-Target}]{\setlength{\rightskip}{0pt plus 5cm}void ace\-::\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11\-::\-Set\-Render\-Target (
\begin{DoxyParamCaption}
\item[{{\bf Render\-Texture\-\_\-\-Imp} $\ast$}]{texture, }
\item[{{\bf Depth\-Buffer\-\_\-\-Imp} $\ast$}]{depth\-Buffer}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classace_1_1_graphics___imp___d_x11_a9489c1db88a35a436ad33215040ac42c}


描画先を設定する。 


\begin{DoxyParams}{引数}
{\em texture} & 描画先のテクスチャ \\
\hline
{\em depth\-Buffer} & 描画先の深度バッファ \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{覚え書き}
textureがnullの場合は無条件で、デフォルトの描画先を使用する。 
\end{DoxyNote}


\hyperlink{classace_1_1_graphics___imp_a5d79011241a426c9260aeca0a7cc5b81}{ace\-::\-Graphics\-\_\-\-Imp}を実装しています。



このクラスの説明は次のファイルから生成されました\-:\begin{DoxyCompactItemize}
\item 
Dev/ace\-\_\-cpp/core/\-Graphics/\-D\-X11/ace.\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11.\-h\item 
Dev/ace\-\_\-cpp/core/\-Graphics/\-D\-X11/ace.\-Graphics\-\_\-\-Imp\-\_\-\-D\-X11.\-cpp\end{DoxyCompactItemize}
